from crawler_core.constant.constants import Constants
from search_server.impl.search_51job import Job51SearchResume


class SearchProxy(object):
    def __init__(self):
        pass

    def search(self, context, cookies):
        if context[Constants.CONTEXT_TYPE] == Constants.CHANNEL_TYPE_51JOB:
            info = Job51SearchResume()

        return info.search(context, cookies)
